#include "window.h"
#include "parser_test.h"
#include <QtGui/QApplication>
#include <iostream> 
#include <cstdlib> 
#include <cstdio> 
#include <QTextStream> 
#include <QTextCodec> 

int main(int argc, char *argv[])
{
	QTextCodec* codec = QTextCodec::codecForName("CP1251"); 
 	QTextCodec::setCodecForCStrings(codec); 
 	setlocale(LC_ALL,"Russian"); 
 	FILE* file=freopen("testing.log", "w", stdout); 

	QApplication a(argc, argv);
	parser_test test;
	QTest::qExec(&test);
	window w;
	w.show();
	fclose(file);
	return a.exec();
}
